<template>
    <div class="color">
        <slot name="mytitle"></slot>
        <h1>组件标题</h1>
        <slot name="mybody" :users="userList" :title="title"></slot>
    </div>
</template>

<script>
export default {
    name:'Item',
    data() {
		return {
            title:"标题",
			userList:["张三","李四","王五"]
		};
	}
}
</script>

<style>
    .color{
        background-color: brown;
        margin-top: 30px;
    }
</style>